More colors are not always more useful
Four to six colors often produce a clearer UI palette, while larger counts preserve more accents from complex photographs. If neighboring swatches look nearly identical, reduce the color count or increase sampling precision instead of keeping redundant tones.